package com.lianzhihui.romeex.ui.ipfs;

import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.lianzhihui.romeex.R;
import com.lianzhihui.romeex.adapter.IPFSMadeAdapter;
import com.lianzhihui.romeex.adapter.IPFSMadeMonthAdapter;
import com.lianzhihui.romeex.ui.base.BaseActivity;

import java.util.ArrayList;

import butterknife.BindView;

/**
 * Description:
 * Author:         RAMON
 * CreateDate:     2021/3/30 14:35
 * UpdateUser:
 * UpdateDate:
 * UpdateRemark:
 * Version:
 */
public class IPFSMadeInfoActivity extends BaseActivity {

    @BindView(R.id.tv_all)
    TextView tv_all;
    @BindView(R.id.rl_range)
    RelativeLayout rl_range;
    @BindView(R.id.recyclerView)
    RecyclerView recyclerView;

    IPFSMadeAdapter adapter;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_ipfs_madeinfo_layout;
    }

    @Override
    protected void initView() {

        adapter = new IPFSMadeAdapter(new ArrayList<>());
        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
        linearLayoutManager.setOrientation(RecyclerView.VERTICAL);
        recyclerView.setLayoutManager(linearLayoutManager);
        recyclerView.setAdapter(adapter);

    }

    @Override
    protected void initData() {
        ArrayList<Object> array = new ArrayList();
        array.add(new Object());
        array.add(new Object());
        array.add(new Object());
        array.add(new Object());
        adapter.setNewData(array);
    }
}
